<h1 class="ttt"><span><?= (isset($user)) ? lang('label_edit_profile') : lang('label_new_user') ; ?></span></h1>

<div id="inner">
    <form class="form" action="<?php echo current_url() ?>" method="post">


        <div class="text">
            <label for="username"><?php echo lang('label_username') ?> <em>*</em></label>
            <samp>
                <input type="text" name="username" id="username" class="input-user" value="<?= (isset($user)) ? $user->username : set_value('username') ?>" />
            </samp>
        </div>
        
        <div class="text">
            <label for="email"><?php echo lang('label_email') ?> <em>*</em></label>
            <samp>
                <input type="email" name="email" id="email" class="input-user" value="<?= (isset($user)) ? $user->email : set_value('email') ?>" />
            </samp>
        </div>
        
        <div class="text">
            <label for="password"><?php echo lang('label_password') ?> <em>*</em></label>
            <samp>
                <input type="password" name="password" id="password" class="input-user" value="<?php echo set_value('password') ?>" />
            </samp>
        </div>
        
        <div class="text">
            <label for="confpassword"><?php echo lang('label_confpassword') ?> <em>*</em></label>
            <samp>
                <input type="password" name="confpassword" id="confpassword" class="input-user" value="<?php echo set_value('confpassword') ?>" />
            </samp>
        </div>
        
        <div class="text">
            <label for="subscrib"><?php echo lang('label_subscrib') ?> <em>*</em></label>
            <samp>
                <input type="checkbox" name="subscrib" id="subscrib" class="input-user" checked />
            </samp>
        </div>

        <div class="submit">

            <input name="submit" class="subh-ico2" value="<?=lang('title_register')?>" type="submit"  />

        </div>

    </form>
</div>
